package com.shaoshaohuo.app.ui;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.shaoshaohuo.app.R;
import com.shaoshaohuo.app.ui.fragment.DetailsFragmentBottomTow;

/**
 * Created by Administrator on 2017/7/5.
 */

public class PjTowActivity extends BaseActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FrameLayout frameLayout = new FrameLayout(this);

        setContentView(frameLayout);
        ViewGroup viewById = (ViewGroup) getWindow().getDecorView().findViewById(android.R.id.content);
        changeTransltestaus(viewById.getChildAt(0), this, TransltestausModel.NoePicter, Color.parseColor("#49b152"));
        frameLayout.setId(R.id.fh);
        Intent intent = getIntent();
        String catid = intent.getStringExtra("catid");
        DetailsFragmentBottomTow newCartFragment = DetailsFragmentBottomTow.newInstance(catid);
        android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
        fragmentTransaction.replace(frameLayout.getId(), newCartFragment);
        fragmentTransaction.commit();
    }
}
